<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>异步编程</title>
  </head>
  <body>
    <script src="js/jquery-3.4.1.js"></script>
    <script>
      //   $.ajax({
      //     url: "http://localhost:3000/jq01",
      //     success: function (data) {
      //       console.log(data);
      //     },
      //   });

      //   $.ajax({
      //     url: "http://localhost:3000/jq02",
      //     success: function (data) {
      //       console.log(data);
      //     },
      //   });

      //   $.ajax({
      //     url: "http://localhost:3000/jq03",
      //     success: function (data) {
      //       console.log(data);
      //     },
      //   });

      $.ajax({
        url: "http://localhost:3000/jq01",
        success: function (data) {
          console.log(data);
          $.ajax({
            url: "http://localhost:3000/jq02",
            success: function (data) {
              console.log(data);
              $.ajax({
                url: "http://localhost:3000/jq03",
                success: function (data) {
                  console.log(data);
                },
              });
            },
          });
        },
      });
    </script>
  </body>
</html>
